package io.renren.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.app.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    @Select("SELECT * FROM user_drivers_datcher WHERE user_id = #{userId}")
    UserEntity findByUserId(int userId);
    @Select("SELECT * FROM user_drivers_datcher WHERE ID = #{ID}")
    UserEntity findByID(String ID);

}
